import request from '@/utils/request'

export function admins(data) {
  return request({
    url: '/enterprise/enterpriseAdmins',
    method: 'post',
    data
  })
}

export function admin(data) {
  return request({
    url: '/enterprise/enterpriseAdmin',
    method: 'post',
    data
  })
}

export function deleted(data) {
  return request({
    url: '/enterprise/admin/delete',
    method: 'post',
    data
  })
}

export function create(data) {
  return request({
    url: '/enterprise/enterpriseAdmin/create',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/enterprise/enterpriseAdmin/update',
    method: 'post',
    data
  })
}

export function updateSelf(data) {
  return request({
    url: '/enterprise/admin/updateSelf',
    method: 'post',
    data
  })
}

export function syncPermissions(data) {
  return request({
    url: '/enterprise/admin/syncPermissions',
    method: 'post',
    data
  })
}

export function nav(data) {
  return request({
    url: '/enterprise/nav',
    method: 'post',
    data
  })
}

export function navSetNoCache(data) {
  return request({
    url: '/enterprise/nav/set/noCache',
    method: 'post',
    data
  })
}

export function navSetAffix(data) {
  return request({
    url: '/enterprise/nav/set/affix',
    method: 'post',
    data
  })
}
